package com.spark.core;

public class SparkException extends Exception {
	private static final long serialVersionUID = 1L;
	
	private Integer errorId = null;
	private String errorContent = null;
	
	public SparkException(Integer id) {
		super();
		setErrorId(id);
	}
	public SparkException(Integer id, String content) {
		super();
		setErrorId(id);
		setErrorContent(content);
	}

	public Integer getErrorId() {
		return errorId;
	}

	public void setErrorId(Integer errorId) {
		this.errorId = errorId;
	}

	public String getErrorContent() {
		return errorContent;
	}

	public void setErrorContent(String errorContent) {
		this.errorContent = errorContent;
	}

}
